
#ifndef __TASK_H
#define __TASK_H

#include "gd32f30x.h"
#include <stdbool.h>

#include "../User/TASK/DataStorage.h"



typedef union
{
    struct
    {
				uint8_t type;
				uint8_t status;
				uint8_t index[2];
				uint8_t starttime[4];
    } info;
    uint8_t Byte[8];
}TASKIndex_union;

typedef struct
{
	uint32_t tasknum;
	TASKIndex_union task[300];
}TASKIndex_struct;


void vtaskIndexInit(void);
	



#endif   //__BUFFER_H

